package com.dzm.xgb.core.service;

import com.dzm.xgb.core.pojo.dto.ExcelDictDTO;
import com.dzm.xgb.core.pojo.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author Dzm
 * @since 2024-08-27
 */
public interface DictService extends IService<Dict> {

    void importData(MultipartFile file) throws IOException;

    List<ExcelDictDTO> listDictData();

    List<Dict> findChildrenByParentId(Integer pid);

    List<Dict> findByDictCode(String dictCode);
}
